package com.kede.api.ienum;

/**
 * @Author 乔包包
 * @PackageName server-parent-master
 * @Package com.kede.api.ienum
 * @Date 2024/2/3 11:33
 * @Version 1.0
 */

public enum KedeExceptionEnum {
    SYSERR(3000,"系统异常"),
    PARAM_ERR(4000,"参数异常"),
    PARAM_MISS(4100,"参数不能为空"),
    DATA_ERR(5000,"数据异常"),
    DATA_MISS(5100,"数据为空")
    ;

    private String msg;
    private Integer code;


    KedeExceptionEnum(Integer code,String msg){
        this.msg = msg;
        this.code = code;
    }

    public void setMsgExt(String msgExt){
        this.msg = this.msg+":"+msgExt;
    }
    public String getMsg() {
        return msg;
    }
    public Integer getCode() {
        return code;
    }

}
